package it.win4buy.events
{
    /**
     *
     *	autore:
     *  pierangelo.mancusi@gmail.com
     *
     */

    import flash.events.Event;

    public class GetUserDataEvent extends Event
    {

        public static const RESULT:String="GetUserDataEvent.RESULT";

        public static const FAULT:String="GetUserDataEvent.FAULT";


        //-------------------------------------------
        //
        // Injected properties
        //
        //-------------------------------------------


        //-------------------------------------------
        //
        // Private Properties
        //
        //-------------------------------------------

        /**
         * Used to store userdata
         */
        private var _obj:Object;


        //-------------------------------------------
        //
        // Getters / Setters
        //
        //-------------------------------------------
        /**
         * Used to store userdata
         */
        public function get obj():Object
        {
            return _obj;
        }

        public function set obj(value:Object):void
        {
            _obj=value;
        }


        //-------------------------------------------
        //
        // Constructor
        //
        //-------------------------------------------

        public function GetUserDataEvent(type:String, obj:Object, bubbles:Boolean=false, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
            this.obj=obj;
        }

        //-------------------------------------------
        //
        // Mediator Handlers
        //
        //-------------------------------------------

        //-------------------------------------------
        //
        // Override Methods
        //
        //-------------------------------------------

        override public function clone():Event
        {

            return new GetUserDataEvent(type, obj, bubbles, cancelable);
        }
        //-------------------------------------------
        //
        // Private Methods
        //
        //-------------------------------------------


    }
}